package com.leesche.zcsp.node.web.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysAuditPersonCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysAuditPersonCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAuditpersonidIsNull() {
            addCriterion("auditpersonid is null");
            return (Criteria) this;
        }

        public Criteria andAuditpersonidIsNotNull() {
            addCriterion("auditpersonid is not null");
            return (Criteria) this;
        }

        public Criteria andAuditpersonidEqualTo(Long value) {
            addCriterion("auditpersonid =", value, "auditpersonid");
            return (Criteria) this;
        }

        public Criteria andAuditpersonidNotEqualTo(Long value) {
            addCriterion("auditpersonid <>", value, "auditpersonid");
            return (Criteria) this;
        }

        public Criteria andAuditpersonidGreaterThan(Long value) {
            addCriterion("auditpersonid >", value, "auditpersonid");
            return (Criteria) this;
        }

        public Criteria andAuditpersonidGreaterThanOrEqualTo(Long value) {
            addCriterion("auditpersonid >=", value, "auditpersonid");
            return (Criteria) this;
        }

        public Criteria andAuditpersonidLessThan(Long value) {
            addCriterion("auditpersonid <", value, "auditpersonid");
            return (Criteria) this;
        }

        public Criteria andAuditpersonidLessThanOrEqualTo(Long value) {
            addCriterion("auditpersonid <=", value, "auditpersonid");
            return (Criteria) this;
        }

        public Criteria andAuditpersonidIn(List<Long> values) {
            addCriterion("auditpersonid in", values, "auditpersonid");
            return (Criteria) this;
        }

        public Criteria andAuditpersonidNotIn(List<Long> values) {
            addCriterion("auditpersonid not in", values, "auditpersonid");
            return (Criteria) this;
        }

        public Criteria andAuditpersonidBetween(Long value1, Long value2) {
            addCriterion("auditpersonid between", value1, value2, "auditpersonid");
            return (Criteria) this;
        }

        public Criteria andAuditpersonidNotBetween(Long value1, Long value2) {
            addCriterion("auditpersonid not between", value1, value2, "auditpersonid");
            return (Criteria) this;
        }

        public Criteria andPersonnameIsNull() {
            addCriterion("personname is null");
            return (Criteria) this;
        }

        public Criteria andPersonnameIsNotNull() {
            addCriterion("personname is not null");
            return (Criteria) this;
        }

        public Criteria andPersonnameEqualTo(String value) {
            addCriterion("personname =", value, "personname");
            return (Criteria) this;
        }

        public Criteria andPersonnameNotEqualTo(String value) {
            addCriterion("personname <>", value, "personname");
            return (Criteria) this;
        }

        public Criteria andPersonnameGreaterThan(String value) {
            addCriterion("personname >", value, "personname");
            return (Criteria) this;
        }

        public Criteria andPersonnameGreaterThanOrEqualTo(String value) {
            addCriterion("personname >=", value, "personname");
            return (Criteria) this;
        }

        public Criteria andPersonnameLessThan(String value) {
            addCriterion("personname <", value, "personname");
            return (Criteria) this;
        }

        public Criteria andPersonnameLessThanOrEqualTo(String value) {
            addCriterion("personname <=", value, "personname");
            return (Criteria) this;
        }

        public Criteria andPersonnameLike(String value) {
            addCriterion("personname like", value, "personname");
            return (Criteria) this;
        }

        public Criteria andPersonnameNotLike(String value) {
            addCriterion("personname not like", value, "personname");
            return (Criteria) this;
        }

        public Criteria andPersonnameIn(List<String> values) {
            addCriterion("personname in", values, "personname");
            return (Criteria) this;
        }

        public Criteria andPersonnameNotIn(List<String> values) {
            addCriterion("personname not in", values, "personname");
            return (Criteria) this;
        }

        public Criteria andPersonnameBetween(String value1, String value2) {
            addCriterion("personname between", value1, value2, "personname");
            return (Criteria) this;
        }

        public Criteria andPersonnameNotBetween(String value1, String value2) {
            addCriterion("personname not between", value1, value2, "personname");
            return (Criteria) this;
        }

        public Criteria andPersonmobileIsNull() {
            addCriterion("personmobile is null");
            return (Criteria) this;
        }

        public Criteria andPersonmobileIsNotNull() {
            addCriterion("personmobile is not null");
            return (Criteria) this;
        }

        public Criteria andPersonmobileEqualTo(String value) {
            addCriterion("personmobile =", value, "personmobile");
            return (Criteria) this;
        }

        public Criteria andPersonmobileNotEqualTo(String value) {
            addCriterion("personmobile <>", value, "personmobile");
            return (Criteria) this;
        }

        public Criteria andPersonmobileGreaterThan(String value) {
            addCriterion("personmobile >", value, "personmobile");
            return (Criteria) this;
        }

        public Criteria andPersonmobileGreaterThanOrEqualTo(String value) {
            addCriterion("personmobile >=", value, "personmobile");
            return (Criteria) this;
        }

        public Criteria andPersonmobileLessThan(String value) {
            addCriterion("personmobile <", value, "personmobile");
            return (Criteria) this;
        }

        public Criteria andPersonmobileLessThanOrEqualTo(String value) {
            addCriterion("personmobile <=", value, "personmobile");
            return (Criteria) this;
        }

        public Criteria andPersonmobileLike(String value) {
            addCriterion("personmobile like", value, "personmobile");
            return (Criteria) this;
        }

        public Criteria andPersonmobileNotLike(String value) {
            addCriterion("personmobile not like", value, "personmobile");
            return (Criteria) this;
        }

        public Criteria andPersonmobileIn(List<String> values) {
            addCriterion("personmobile in", values, "personmobile");
            return (Criteria) this;
        }

        public Criteria andPersonmobileNotIn(List<String> values) {
            addCriterion("personmobile not in", values, "personmobile");
            return (Criteria) this;
        }

        public Criteria andPersonmobileBetween(String value1, String value2) {
            addCriterion("personmobile between", value1, value2, "personmobile");
            return (Criteria) this;
        }

        public Criteria andPersonmobileNotBetween(String value1, String value2) {
            addCriterion("personmobile not between", value1, value2, "personmobile");
            return (Criteria) this;
        }

        public Criteria andPersonemailIsNull() {
            addCriterion("personemail is null");
            return (Criteria) this;
        }

        public Criteria andPersonemailIsNotNull() {
            addCriterion("personemail is not null");
            return (Criteria) this;
        }

        public Criteria andPersonemailEqualTo(String value) {
            addCriterion("personemail =", value, "personemail");
            return (Criteria) this;
        }

        public Criteria andPersonemailNotEqualTo(String value) {
            addCriterion("personemail <>", value, "personemail");
            return (Criteria) this;
        }

        public Criteria andPersonemailGreaterThan(String value) {
            addCriterion("personemail >", value, "personemail");
            return (Criteria) this;
        }

        public Criteria andPersonemailGreaterThanOrEqualTo(String value) {
            addCriterion("personemail >=", value, "personemail");
            return (Criteria) this;
        }

        public Criteria andPersonemailLessThan(String value) {
            addCriterion("personemail <", value, "personemail");
            return (Criteria) this;
        }

        public Criteria andPersonemailLessThanOrEqualTo(String value) {
            addCriterion("personemail <=", value, "personemail");
            return (Criteria) this;
        }

        public Criteria andPersonemailLike(String value) {
            addCriterion("personemail like", value, "personemail");
            return (Criteria) this;
        }

        public Criteria andPersonemailNotLike(String value) {
            addCriterion("personemail not like", value, "personemail");
            return (Criteria) this;
        }

        public Criteria andPersonemailIn(List<String> values) {
            addCriterion("personemail in", values, "personemail");
            return (Criteria) this;
        }

        public Criteria andPersonemailNotIn(List<String> values) {
            addCriterion("personemail not in", values, "personemail");
            return (Criteria) this;
        }

        public Criteria andPersonemailBetween(String value1, String value2) {
            addCriterion("personemail between", value1, value2, "personemail");
            return (Criteria) this;
        }

        public Criteria andPersonemailNotBetween(String value1, String value2) {
            addCriterion("personemail not between", value1, value2, "personemail");
            return (Criteria) this;
        }

        public Criteria andAdminidIsNull() {
            addCriterion("adminid is null");
            return (Criteria) this;
        }

        public Criteria andAdminidIsNotNull() {
            addCriterion("adminid is not null");
            return (Criteria) this;
        }

        public Criteria andAdminidEqualTo(Long value) {
            addCriterion("adminid =", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidNotEqualTo(Long value) {
            addCriterion("adminid <>", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidGreaterThan(Long value) {
            addCriterion("adminid >", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidGreaterThanOrEqualTo(Long value) {
            addCriterion("adminid >=", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidLessThan(Long value) {
            addCriterion("adminid <", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidLessThanOrEqualTo(Long value) {
            addCriterion("adminid <=", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidIn(List<Long> values) {
            addCriterion("adminid in", values, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidNotIn(List<Long> values) {
            addCriterion("adminid not in", values, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidBetween(Long value1, Long value2) {
            addCriterion("adminid between", value1, value2, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidNotBetween(Long value1, Long value2) {
            addCriterion("adminid not between", value1, value2, "adminid");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updatetime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updatetime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updatetime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updatetime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updatetime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updatetime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updatetime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updatetime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updatetime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updatetime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updatetime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updatetime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createtime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createtime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createtime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createtime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createtime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createtime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createtime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createtime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createtime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createtime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createtime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createtime not between", value1, value2, "createtime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}